<?php defined('SYSTEM_IN') or exit('Access Denied');?>
<?php include page('header_base');?>
<title>我的ID</title>
<link href="<?php echo RESOURCE_ROOT;?>public/weui.min.css" rel="stylesheet">
<link href="<?php echo RESOURCE_ROOT;?>public/weui.plus.css?v=2" rel="stylesheet">
<script src="<?php  echo RESOURCE_ROOT;?>eshop/static/js/clipboard.min.js"></script>
<div class="weui-cells_form" style="  margin-bottom:50px;   border-bottom: 0px solid #FFF;   margin-top: 0;">
    <div class="page_topbar" >
        <a href="<?php echo create_url('mobile',array('act' => 'center','do' => 'member','m'=>'eshop'));?>" class="back"  style="color: #fff;text-align:center;"><i class="fa fa-angle-left"></i></a>
        <div class="title" style="color: #fff;text-align:center;">我的ID</div>
    </div>
    <div style="padding-top:10px;border-top:1px solid #e0e0e0;">
        <?php foreach((array)$udid_list as $k=>$v){?>
            <div style="margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #e0e0e0;">               
                <div style="padding:0 10px;height:24px;line-height:24px;">
                    <span style="color:#999;font-size:0.8rem;">ID:<span><?php echo $v['udid'];?></span></span>
                    <span class="btn" style="float:right;display:inline;" onclick="copyText(this);">
                        <img src="<?php  echo RESOURCE_ROOT;?>eshop/static/images/copy.png" height="20">
                    </span>
                </div>
                <div style="padding:0 10px;height:72px;line-height:24px;font-size:0.8rem;">
                	<div style="float:left;width:70%;display:inline;">
                    	<div>昵称:<?php echo $v['nickname'];?></div>
                        <div>电话:<?php echo $v['phone'];?></div>
                        <div>团队人数:<?php echo $v['number'];?></div>
                    </div>
                    <div style="float:right;width:30%;display:inline;text-align:right;line-height:72px;">
                    	<?php if($v['nickname']){?><span style="color:blue;">已激活</span><?php }else{?><span style="color:red;">待激活</span><?php }?>
                    </div>
                    <div style="clear:both"></div>
                </div>
            </div>
        <?php } ?>
    </div>
</div>
<script>
    function copyText(obj){
        var clipboard = new Clipboard('.btn', {
            text: function() {
                return $(obj).prev().find('span').html();
            }
        });
        alert('复制成功');
    }
    function search(){
        var search = $('#search').val();
        window.location = "<?php  echo create_url('mobile',array('act' => 'mobile','do' => 'hall','m'=>'shopwap'))?>&search="+search;
    }
</script>
<?php  $show_footer=true;?>
<?php include page('footer_menu');?>
<?php include page('footer_base');?>